package com.app.miwawa.api.eam.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.framework.common.api.entity.CommonEntityUUID;
import org.framework.common.api.support.annotation.Chosen;
import org.framework.common.api.support.annotation.ChosenType;
import org.framework.common.api.support.annotation.Search;

/**
 * 教室
 * <p>描述: 教务</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年1月31日 下午1:10:09
 * @version 1.0.2016
 */
@Entity @Table(name = "TB_EAM_ROOM_INFO")
public class Room extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = -897923548025429209L;

	// 教室编号（房间号）
	@Column(name = "code", length = 50, nullable = true)
	private String code;

	// 教室类型
	@Column(name = "type", length = 10, nullable = true)
	private String type;

	// 教室名称
	@Search
	@Column(name = "name", length = 50, nullable = true)
	private String name;

	// 教室面积
	@Column(name = "area", length = 10, nullable = true)
	private String area;

	// 所在位置
	@Column(name = "place", length = 100, nullable = true)
	private String place;

	// 备注
	@Column(name = "remark", length = 100, nullable = true)
	private String remark;

	// 容纳人数
	@Column(name = "contain", length = 10, nullable = true)
	private String contain;

	@Override
	@Chosen(type=ChosenType.VALUE)
	public String getId() {
		return super.getId();
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Chosen(type=ChosenType.TEXT)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getContain() {
		return contain;
	}

	public void setContain(String contain) {
		this.contain = contain;
	}
	
}
